import type { PageQuery } from '@/types/app'

export type InterfaceRecord = {
  id: string
  interfaceName: string
  url: string
  method: 'GET' | 'POST' | 'PUT' | 'DELETE'
  site: string
  protocol: 'http' | 'https'
  isImported: boolean
  isRecorded: boolean
  createTime: string
}

export type GetInterfaceListParams = {
  page?: number
  pageSize?: number
  interfaceName?: string
  url?: string
  method?: string
  site?: string
  isRecorded?: boolean | ''
  createBeginTime?: string
  createEndTime?: string
}

export interface ExportInterfaceLisParams extends GetInterfaceListParams {
  ids?: (string | number)[]
}

/**
 * 获取接口列表参数
 */
export interface GetInterfaceList extends PageQuery {}
